<%@taglib prefix="s" uri="/struts-tags" %>
<form id="pagerForm" method="post" action="admin_articleList.jsp">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="keywords" value="${param.keywords}" />
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>

<div class="page">
	<div class="pageHeader">
		<form onsubmit="return navTabSearch(this);" action="admin_area.html" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						搜索：
					</td>
					<td>
						<select class="combox" name="option">
							<option value="">ID</option>
							<option value="北京">标题</option>
							<option value="上海">关键字</option>
							<option value="北京">标题</option>
							<option value="上海">关键字</option>
							<option value="北京">标题</option>
							<option value="上海">关键字</option>
						</select>
					</td>
					<td>
						<input type="text" name="keyword" alt="xxxx"/>
					</td>
					<td>
						<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
					</td>
					<td>
						<a class="button" href="admin_search.html" target="dialog" rel="dlg_page1" title="查询框"><span>高级检索</span></a>
					</td>
				</tr>
			</table>
			<div class="ajaxBar">
				<ul>
					<li>
						<select class="combox" name="city">
							<option value="">内容筛选</option>
							<option value="北京">漯河市</option>
							<option value="上海">其他市</option>
						</select>
					</li>
					<li>
						<select class="combox" name="city"  orderField="accountName">
							<option value="">排列顺序</option>
							<option value="desc">时间-降序</option>
							<option value="asc">时间-升序</option>
							<option value="desc">点击数-降序</option>
							<option value="asc">点击数-升序</option>
						</select>
					</li>
				</ul>
				
			</div>
		</div>
		</form>
	</div>
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="admin_addArticle.jsp" target="navTab" rel="addArticle" title="添加文章"><span>添加</span></a></li>
				<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="deleteSome" postType="string" href="articleMng!deleteArticle.action?callbackType=forward" class="delete"><span>批量删除逗号分隔</span></a></li>
			</ul>
		</div>
		<table class="table" layouth="148" width="100%">
			<thead>
				<tr>
					<th width="50" align="center"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
					<th width="80" align="center">ID</th>
					<th width="150" align="center">栏目名称</th>
					<th width="400">标题</th>
					<th width="100" align="center">发布者</th>
					<th width="60" align="center">点击</th>
					<th width="100" align="center">发布时间</th>
					<th width="60" align="center">置顶</th>
					<th align="center">操作</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="list">
				<tr>
					<td><input name="ids" value="<s:property value="nid"/>" type="checkbox"></td>
					<td><s:property value="nid"/></td>
					<td><s:property value="columnId"/></td>
					<td><s:property value="title"/></td>
					<td><s:property value="author"/></td>
					<td><s:property value="clicks"/></td>
					<td><s:property value="postTime"/></td>
					<td><s:property value="isTop"/></td>
					<td>
						<a title="预览" target="dialog" href="articleMng!getAnArticle.action?action=view&ids=<s:property value="nid"/>&ajax=null" class="btnView" max="true" title="修改文章" width="800" height="480">预览</a>
						<a title="删除" target="ajaxTodo" href="articleMng!deleteArticle.action?callbackType=forward&ids=<s:property value="nid"/>" class="btnDel">删除</a>
						<a title="编辑" target="navTab" href="articleMng!getAnArticle.action?action=edit&ids=<s:property value="nid"/>&ajax=null" class="btnEdit">编辑</a>
						<a title="置顶" target="ajaxTodo" href="articleMng!topArticle.action?callbackType=forward&article.nid=<s:property value="nid"/>&article.isTop=true" class="btnTop">置顶</a>
					</td>
				</tr>
				</s:iterator>
				
			</tbody>
		</table>
	
		<div class="panelBar">
			<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" change="navTabPageBreak" param="numPerPage">
					<option value="20">20</option>
					<option value="50">50</option>
					<option value="100">100</option>
					<option value="200">200</option>
				</select>
				<span>条，共${totalCount}条</span>
			</div>
			
			<div class="pagination" targetType="navTab" totalCount="200" numPerPage="20" pageNumShown="1" currentPage="1"></div>

		</div>
	</div>
</div>